package o;

import android.annotation.TargetApi;
import android.app.Activity;
import android.net.http.SslError;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public abstract class fny extends WebViewClient {
    protected fnv ˊ;
    protected foc ˋ;

    public fny(fnv o_fnv, foc o_foc) {
        this.ˊ = o_fnv;
        this.ˋ = o_foc;
    }

    @TargetApi(24)
    public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
        if (this.ˊ != null) {
            this.ˊ.ˏ(webView, webResourceRequest.getUrl().toString());
        }
        return super.shouldOverrideUrlLoading(webView, webResourceRequest);
    }

    public boolean shouldOverrideUrlLoading(WebView webView, String str) {
        if (this.ˊ != null) {
            this.ˊ.ˏ(webView, str);
        }
        return super.shouldOverrideUrlLoading(webView, str);
    }

    public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
        if (this.ˊ != null) {
            this.ˊ.ॱ(webView, sslErrorHandler, sslError);
        } else {
            super.onReceivedSslError(webView, sslErrorHandler, sslError);
        }
    }

    public void ˏ() {
    }

    public void ˊ(Activity activity, String str) {
    }

    public boolean ॱ() {
        return false;
    }
}
